package org.idea.qiyu.framework.rocketmq.config.serializer;

/**
 * @Author linhao
 * @Date created in 8:20 下午 2021/7/7
 */
public class SerializerUtils<T> {

    private static final FastJsonSerializer FAST_JSON_SERIALIZER = new FastJsonSerializer();

    public static <T> T getDataFromFastJson(byte[] data,Class<T> clazz){
        return FAST_JSON_SERIALIZER.serializer(data,clazz);
    }
}
